import Taro from "@tarojs/taro";


export const getDictList = (value) => {
    const dictAllStr = Taro.getStorageSync('dict')
    const dictAll = JSON.parse(dictAllStr)
    console.log("dictAll",dictAll)
    const filterList = dictAll.filter(e => e.dictValue === value);
    if (filterList.length > 0) {
        return filterList[0].children
    }
    return []
}